package com.eclink.asset.asset.domain.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eclink.asset.domain.dao.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 入库申请对象 apply
 *
 * @author chenshixian
 */
@ApiModel(description="入库申请对象")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("flow_apply")
public class FlowApply extends CommonEntity {

    private static final long serialVersionUID = 2564121177556133972L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("编号")
    private String number;

    @ApiModelProperty("申请类型")
    private String applyType;

    @ApiModelProperty("申请类型名称")
    private String applyTypeName;

    @ApiModelProperty("申请数量")
    private Integer num;

    // 目标管理员ID
    private Long targetAdminId;

    // 目标管理员名称
    @TableField(exist = false)
    private String targetAdminName;

    // 目标公司ID
    private Long targetCompanyId;

    // 目标公司名称
    @TableField(exist = false)
    private String targetCompanyName;

    @ApiModelProperty("处理时间")
    private LocalDateTime handleTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("申请对应的流程ID")
    private String flowId;

    @ApiModelProperty("申请处理的状态")
    private Integer handleState;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("删除标志")
    private Integer delFlag;

    @ApiModelProperty("表单数据")
    private String formData;

    @ApiModelProperty("范围表单数据")
    private String formDataRange;

    @ApiModelProperty("结果")
    private String result;

    @TableField(exist = false)
    private String createUserName;


}
